<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="1" />
<meta name="acc" content="_assets" />
<style type="text/css">
</style>
<title>设备信息录入</title>

<script type="text/javascript">
	$(document).ready(function() {
		$("#importasset").mouseover(function() {
			var con = $("#upfile").val();
			con = con.substring(con.indexOf('.'));
			if (con == "" || con != ".xls") {
				alert("请正确上传文件！");
			}
		});
	});

</script>
</head>
<body>
<form action="${ctx}/asset/equipment/information!importassets.action"
	method="post" id="inputForm" class='yform'
	enctype="multipart/form-data">
<table>
	<tr>
		<td>下载模板</td>
		<td><a title="下载"
			href="${ctx}/servlet/annex?path=/resources/equipment.xls")>设备信息录入模板</a></td>
	</tr>
	<tr>
		<td>上传数据文件</td>
		<td><input id="upfile" name="attachment.upfile" type="file" /></td>
	</tr>
	<tr align="center">
		<td><input id="importasset" type="submit" value="上传"
			class="submit"></input></td>
		<td><input type="button" value="取消" class="button"></input></td>
	</tr>
</table>
</form>
</body>
</html>